package kr.hkit.Powerjava.chapter21.work;

public class BankAccountTest {
	public static void main(String[] args) {
		BankAccount1 b1 = new BankAccount1();
		b1.deposit(100000);
		System.out.println(b1);
		try {
			b1.withdraw(50000);
			System.out.println(b1);
		} catch (NegativeBalanceException e) {
			System.out.println(e.getMessage());
			e.printStackTrace();
		}
		
		
		
	}
}
